package com.onlyyou.user.exception;

import com.onlyyou.user.enums.ResultEnum;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

/**
 * @Author: 小野
 * @Date: 2020/1/12 16:03
 */
@Data
@Slf4j
public class UserException extends RuntimeException {
    private Integer code;

    public UserException(ResultEnum resultEnum) {
        super(resultEnum.getMsg());
        this.code = resultEnum.getStatus();
    }

}
